import turtle

font_size = ("楷体", 18)
apple_tom = 5
turtle.up()
turtle.goto(-80, 150)
turtle.write(f"Tom有{apple_tom}个苹果", font=font_size)

apple_jerry = turtle.numinput("Question", "Jerry有几个苹果?")
turtle.goto(-80, 100)

if apple_tom > apple_jerry:
    turtle.write("Tom的苹果多", font=font_size)
elif apple_jerry > apple_tom:
    turtle.write("Jerry的苹果多", font=font_size)
else:
    turtle.write("Jerry和Tom的苹果一样多", font=font_size)

turtle.done()